package com.hsteach.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsteach.dao.domain.myopia.MyopiaRisk;
import com.hsteach.web.controller.myopia.vo.MyopiaRiskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 近视高危Mapper接口
 *
 * @author lx
 * @date 2023-07-07
 */
@Mapper
public interface MyopiaRiskMapper extends BaseMapper<MyopiaRisk> {

    List<MyopiaRiskVO> getRiskProportion(Long schoolId);

    List<MyopiaRiskVO> getAreaRiskProportion(@Param("missionId") Long missionId,@Param("groupBy")String groupBy);
}
